package com.whjfxx.terminal.commons;

import lombok.Data;
import sun.reflect.generics.tree.Tree;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by b.c on 2022/6/30 20:22
 */
@Data
public class TreeVo {

    private Long id;

    private String title;

    private List<TreeVo> children = new ArrayList<>(0);

    public TreeVo () {

    }

    public TreeVo (Long id, String title) {
        this.id = id;
        this.title = title;
    }

    public TreeVo (Long id, String title, List<TreeVo> children) {
        this.id = id;
        this.title = title;
        this.children = children;
    }

}
